package com.J.Plane;

import javax.microedition.khronos.opengles.GL10;

import junit.framework.Assert;


/**
 * Abstract class for object which are drawn on 3d
 * world.
 * 
 * @author jhlee
 *
 */
public class Entity {

	private SceneNode	mParentNode;
	
	public Entity() {
	}
	
	public void render(GL10 gl) {
		Assert.assertEquals("Render should be implemented by subclass", false);
	}
	
	
	public void setParent(SceneNode node) {
		mParentNode = node;
	}
	public void removeParent() {
		mParentNode = null;
	}
	public SceneNode getParent() {
		return mParentNode;
	}
	
	public Entity clone() {
		Assert.assertEquals("clone() function is not implemented", false);
		return null;
	}
}
